//
//  UIAlertController+Extention.h
//
//  Created by seed on 2016/11/29.
//  Copyright © 2016年 seed. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIAlertController (Extention)
+(UIAlertController*)makeAlertWithStyle:(UIAlertControllerStyle)style makeBlock:(void(^)(UIAlertController* alert))block;


@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIAlertController *(^setTitle)(NSString *);
@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIAlertController *(^setMsg)(NSString *);
@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIAlertController *(^addDestructiveButton)(NSString *);
@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIAlertController *(^addDefaultButton)(NSString *);
@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIAlertController *(^addCancelButton)(NSString *);
@property (NS_NONATOMIC_IOSONLY, readonly, copy) UIAlertController *(^addHandleBlock)(void (^)(NSString *));


-(UIAlertController*)setMsg:(NSString*)msg;


-(UIAlertController*)seTitle:(NSString*)title;

-(UIAlertController*)addDestructiveButton:(NSString*)name;

-(UIAlertController*)addCancelButton:(NSString*)name;

-(UIAlertController*)addDefaultButton:(NSString*)name;



@end
